package com.cssl.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.MongoId;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value ="disease")
@Document("disease")
public class Disease {
    @MongoId
    @TableId
    private Integer disid;
    private String distitle;
    private String disdesc;
    private String cause;
    private Date disdate;
    private Integer readnum;
    private Integer distype;
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
